package com.dao;

import com.pojo.Dept;

import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        DeptDao dao = new DeptDao();
        //dao.insert(1,"ss","sr");
        List<Dept> depts = dao.selectByDname("");
        depts.forEach((dept) ->{
            System.out.println(dept.getDeptno()+dept.getDname());
        });
Scanner input = new Scanner(System.in);
while (true){
    System.out.println("查询部门");

}
    }
}
